<div class="modal-header">
  <div class="modal-title">{{i.id ? '编辑' : '新增'}}字典</div>
</div>
<form nz-form #f="ngForm" se-container="1">
  <se label="名称">
    <input type="text" nz-input [(ngModel)]="i.name" name="name" required maxlength="20">
  </se>
  <se label="代码">
    <input type="text" nz-input [(ngModel)]="i.code" name="code" required maxlength="20">
  </se>
</form>
<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button [disabled]="!f.form.valid || !f.form.dirty" [nzLoading]="http.loading" [nzType]="'primary'" (click)="save()">保存</button>
</div>
